export default {
  propertyType: {
    data: [
      {id:0,name:'农村土地经营权'},
      {id:1,name:'林权'},
      {id:4,name:'宅基地使用权'},
      {id:5,name:'林木采伐权'},
      {id:6,name:'农房使用权'},
      {id:7,name:'集体经营性建设用地使用权'},
      {id:8,name:'水面养殖权'},
      {id:9,name:'农业生产设施所有权'},
      {id:10,name:'四荒地使用权'},
      {id:11,name:'小型水利设施使用权'},
      {id:15,name:'农村建设招标项目'},
      {id:18,name:'其它农村产权项目'}
    ],
    name(e) {
      return this.data.find(({id}) => id === e).name
    }
  },

  propertyBelong: {
    data: [
      {id:0,name:'个人'},
      {id:1,name:'集体'},
      {id:2,name:'其它'}
    ],
    name(e) {
      return this.data.find(({id}) => id === e).name
    }
  },

  transferType: {
    data: [
      {id:0,name:'出租'},
      {id:1,name:'合作'},
      {id:2,name:'转让'},
      {id:3,name:'互换'},
      {id:4,name:'入股'},
      {id:5,name:'转包'},
      {id:6,name:'招拍挂'}
    ],
    name(e) {
      return this.data.find(({id}) => id === e).name
    }
  },

  channelType: {
    data: [
      {id:0,name:'新闻动态'},
      {id:1,name:'生活服务'},
      {id:2,name:'平台协议'},
      {id:3,name:'常见问题'},
    ],
    name(e) {
      if(e === 0 || e) {
        return this.data.find(({id}) => id === e).name || '未知分类'
      } else {
        return '未知分类'
      }
    }
  },

  bookingMode: {
    data: [
      {id:0,name:'日租模式'},
      {id:1,name:'长租模式'},
      {id:2,name:'套餐模式'},
    ],
    name(e) {
      if(e === 0 || e) {
        return this.data.find(({id}) => id === e).name || '未知模式'
      } else {
        return '未知模式'
      }
    }
  },

  orderStatus: {
    data: [
      {id:0,name:'待支付',color:'default'},
      {id:1,name:'待发货',color:'warning'},
      {id:12,name:'已发货',color:'blue'},
      {id:2,name:'待签收',color:'orange'},
      {id:3,name:'已签收',color:'success'},
      {id:4,name:'已评价',color:'default'},
      {id:7,name:'售后',color:'red'},
      {id:8,name:'撤销',color:'#FFA2D3'},
      {id:11,name:'待揽件',color:'green'},
    ],
    name(e) {
      if(e === 0 || e) {
        return this.data.find(({id}) => id === e).name || '未知状态'
      } else {
        return '未知状态'
      }
    },
    color(e) {
      if(e === 0 || e) {
        return this.data.find(({id}) => id === e).color || 'default'
      } else {
        return 'default'
      }
    }
  },

  postSaleStatus: {
    data: [
      {id:0,name:'无',color:'default'},
      {id:1,name:'售后中',color:'warning'},
      {id:2,name:'售后中',color:'blue'},
      {id:3,name:'售后驳回',color:'orange'},
      {id:4,name:'售后结束',color:'success'},
    ],
    name(e) {
      if(e === 0 || e) {
        return this.data.find(({id}) => id === e).name || '未知状态'
      } else {
        return '未知状态'
      }
    },
    color(e) {
      if(e === 0 || e) {
        return this.data.find(({id}) => id === e).color || 'default'
      } else {
        return 'default'
      }
    }
  },

  logisticsCorp: {
    data: [
      {id:0,code:'YTO',name:'圆通速递'},
      {id:1,code:'ZTO',name:'中通快递'},
      {id:2,code:'BEST',name:'百世快递'},
      {id:3,code:'YUNDA',name:'韵达快递'},
      {id:4,code:'SF',name:'顺丰速运'},
      {id:5,code:'EMS',name:'中国邮政速递物流'},
      {id:6,code:'JDL',name:'京东快递'},
      {id:7,code:'HHTT',name:'天天快递'},
      {id:8,code:'JTSD',name:'极兔快递'},
    ],
    name(e) {
      return this.data.find(({code}) => code === e).name
    }
  },

  provinceSet: {
    data: [
      {id: 0, code: '11', name: '北京市'},
      {id: 1, code: '12', name: '天津市'},
      {id: 2, code: '13', name: '河北省'},
      {id: 3, code: '14', name: '山西省'},
      {id: 4, code: '15', name: '内蒙古自治区'},
      {id: 5, code: '21', name: '辽宁省'},
      {id: 6, code: '22', name: '吉林省'},
      {id: 7, code: '23', name: '黑龙江省'},
      {id: 8, code: '31', name: '上海市'},
      {id: 9, code: '32', name: '江苏省'},
      {id: 10, code: '33', name: '浙江省'},
      {id: 11, code: '34', name: '安徽省'},
      {id: 12, code: '35', name: '福建省'},
      {id: 13, code: '36', name: '江西省'},
      {id: 14, code: '37', name: '山东省'},
      {id: 15, code: '41', name: '河南省'},
      {id: 16, code: '42', name: '湖北省'},
      {id: 17, code: '43', name: '湖南省'},
      {id: 18, code: '44', name: '广东省'},
      {id: 19, code: '45', name: '广西壮族自治区'},
      {id: 20, code: '46', name: '海南省'},
      {id: 21, code: '50', name: '重庆市'},
      {id: 22, code: '51', name: '四川省'},
      {id: 23, code: '52', name: '贵州省'},
      {id: 24, code: '53', name: '云南省'},
      {id: 25, code: '54', name: '西藏自治区'},
      {id: 26, code: '61', name: '陕西省'},
      {id: 27, code: '62', name: '甘肃省'},
      {id: 28, code: '63', name: '青海省'},
      {id: 29, code: '64', name: '宁夏回族自治区'},
      {id: 30, code: '65', name: '新疆维吾尔自治区'}
    ],
    name(e) {
      return this.data.find(({code}) => code === e).name
    }
  }
}